STEP 4: Now let's set the amount that the sprite will move. We'll use a variable that we can easily change later on!

To make big changes to a program with only a small change in the code, use a variable!

  • Click LOGIC, then go to . Drag Integer Variable into your code.
  • Change the name of the variable from my_var to move.
  • Change the value of move from 25 to 200.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)